(function(){
    var host = location.host || location.hostname;
    if(!host || host.length < 5) return;
    host = host.toLowerCase();
    if(host === "localhost" || host === "127.0.0.1") return;
	var idx = host.indexOf(".com");
	if(idx !== host.length-4) return;
    window.onerror = function (err) { console.error(err); return false; };
})();